package com.qj.yantaishan.common.annotation;

import com.qj.yantaishan.common.enums.WhereEnum;
import org.springframework.stereotype.Indexed;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
public @interface Where {

    /**
     * 字段名
     * @return
     */
    String field() default "";

    /**
     *  字段查询的类型
     * @return
     */
    WhereEnum whereEnum() default WhereEnum.EQ ;


}
